from flask import Flask

from .init_csrf import init_csrf
from .init_cors import cors
from .init_log import log_err, log_gen


def init_plugins(app: Flask):
    """启动组件"""

    init_csrf(app)  # csrf

    cors.init_app(app)  # cross-origin resource sharing
